const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token值添加在公共的getter，更快去到token
  token: state => state.user.token,
  // 用户名
  name: state => state.user.userInfo.username,
  // 头像
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 当前导出路由
  routes: state => state.permission.routes,
  roles: state => state.user.userInfo.roles
}
export default getters
